package info.javafans.cdn.struct;

import java.util.Map;

public class ActionMapping {
	private String path;
	private String type;
	private Map<String, String> forwardMap;

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Map<String, String> getForwardMap() {
		return forwardMap;
	}

	public void setForwardMap(Map<String, String> forwardMap) {
		this.forwardMap = forwardMap;
	}

	public String getForward(String forwardName) {
		Object value = forwardMap.get(forwardName);
		return value == null ? null : (String) value;
	}
	
	public void setForward(String name, String value) {
		this.forwardMap.put(name, value);
	}
}
